import { createApp } from "vue";
import pinia from "./stores";

import App from "./App.vue";
import router from "./router";
import "./styles/index.scss";
//引入全局组件
import ElSvg from "./components/SvgIcon/ElSvg";
import CategorySelector from "./components/CategorySelector/index.vue";
import "./permission";

const app = createApp(App);

ElSvg(app);
//注册全局组件，第一个参数，组件名，第二个：组件
app.component("CategorySelector", CategorySelector);
app.use(pinia).use(router).mount("#app");
